<include file="public/layout"/>
<body style="background-color: #FFF; overflow: auto;">

<div class="page">
    <div class="fixed-bar">
        <div class="item-title"><a class="back" href="javascript:history.back();" title="返回列表"><i
                class="fa fa-arrow-circle-o-left"></i></a>
            <div class="subject">
                <h3>会员数据设置</h3>

            </div>
        </div>
    </div>
    <div class="explanation" id="explanation">
        <div class="title" id="checkZoom"><i class="fa fa-lightbulb-o"></i>
            <h4 title="提示相关设置操作时应注意的要点">操作提示</h4>
            <span id="explanationZoom" title="收起提示"></span>
        </div>
        <ul>
            <li>资料修改，会员注册动态设置</li>
        </ul>
    </div>
    <form method="post" id="Formsubmit">
        <div class="ncap-form-default">
            <dl class="row" >
                <dt class="tit"  style="color:#fff;background:#0d6aad;">
                    <label>资料设置</label>
                </dt>

            </dl>
            <style>
                .tb tr{height:30px;line-height:30px;border:1px solid #31b4e1;text-align:center;}
                .tb th{font-weight:bold;border:1px solid #31b4e1;text-align:center;}
                .tb td{border:1px solid #31b4e1;}
            </style>
            <table class="tb">
                <tr>
                    <th width="120">名称</th>
                    <th width="100">注册可见</th>
                    <th width="100">注册必填</th>
                    <th width="120">前台可查看</th>
                    <th width="120">前台可修改</th>
                    <th width="100">唯一</th>
                </tr>
                <foreach name="ary" item="name">
                    <tr>
                        <td>{$name}</td>
                        <td><input type="checkbox" value="{$key}" name="reg[]" <if condition="isset($config['reg']) and in_array($key,$config['reg'])">checked="checked"</if> /></td>
                        <td><if condition="!in_array($key,['tjr_id'])"><input type="checkbox" value="{$key}" name="regmust[]" <if condition="isset($config['regmust']) and in_array($key,$config['regmust'])">checked="checked"</if> /></if></td>
                        <td><if condition="!in_array($key,['tjr_id'])"><input type="checkbox" value="{$key}" name="view[]" <if condition="isset($config['view']) and in_array($key,$config['view'])">checked="checked"</if> /></if></td>
                        <td><if condition="!in_array($key,['username','tjr_id'])"><input type="checkbox" value="{$key}" name="edit[]" <if condition="isset($config['edit']) and in_array($key,$config['edit'])">checked="checked"</if> /></if></td>
                        <td><if condition="in_array($key,['email','mobile','idcard'])">
                            <select name="only[{$key}]">
                                <option value="0" <if condition="!isset($config['only']) or $config['only'][$key] eq 0">selected="selected"</if>>不限</option>
                                <for start="1" end="11">
                                    <option value="{$i}" <if condition="isset($config['only']) and $config['only'][$key] eq $i">selected="selected"</if>>{$i}</option>
                                </for>
                            </select>
                        </if></td>
                    </tr>
                </foreach>
            </table>
            <dl class="row" >
                <dt class="tit"  style="color:#fff;background:#0d6aad;">
                    <label>其他设置</label>
                </dt>
            </dl>
            <dl class="row">
                <dt class="tit">
                    <label>登录方式</label>
                </dt>
                <dd class="opt">

                        <input type="checkbox"  name="login_method[]" value="username" <if condition="!isset($config['login_method']) or in_array('username',$config['login_method'])">checked="checked"</if> />用户名
                        <input type="checkbox"  name="login_method[]" value="mobile" <if condition="isset($config['login_method']) and in_array('mobile',$config['login_method'])">checked="checked"</if> />手机号(唯一时才能使用)

                </dd>
            </dl>
            <dl class="row">
                <dt class="tit">
                    <label>用户名生成方式</label>
                </dt>
                <dd class="opt">

                    前缀<input type="text"  name="u_prefix" value="{$config.u_prefix}" />，随机<input type="text"  name="u_randnum" value="{$config.u_randnum}" />位数

                </dd>
            </dl>
            <div class="bot"><a id="submitBtn" class="ncap-btn-big ncap-btn-green" href="JavaScript:void(0);" onClick="ajax_submit_form('Formsubmit','__URL__/userdata');">确认提交</a></div>
        </div>

    </form>


</div>

</body>
</html>